package jd.client.get;

import jd.client.Response;
import jd.client.exception.ResponseParseException;
import jd.client.util.Parser;

/**
 * @author Denis Migol
 * 
 */
public class GetIsReconnectResponse extends Response {

	private Boolean reconnect;

	@Override
	public Response parse(final String response) throws ResponseParseException {
		setReconnect(Parser.parseBoolean(response));
		return super.parse(response);
	}

	/**
	 * @param reconnect
	 *            the isReconnect to set
	 */
	public void setReconnect(final Boolean reconnect) {
		this.reconnect = reconnect;
	}

	/**
	 * @return the isReconnect
	 */
	public Boolean getReconnect() {
		return reconnect;
	}

}
